
<template>
  <van-tabbar v-model="active" @change="onChange">

    <van-tabbar-item    v-for="(item, j) in column.items"  :name="item.prop" :icon="item.icon">{{item.label}}</van-tabbar-item>

  </van-tabbar>
</template>

<script>
  import mixEvent from './mixins/mixEvent';
export default {
  name: "avant-tabbar",
  props: ['column','value'],
  inject: ['getViewFormData'],
  mixins: [mixEvent],
  data() {
    return {
      type: "",
    };
  },

  created() {
    this.type = this.column.items[0].name;
  },
  methods: {
    onChange(index) {
      this.type = this.column.items[index];
    }
  },
};
</script>

<style></style>
